layui.use(['element', 'layer'], function () {
    var element = layui.element;
    var $ = layui.$,
        layer = layui.layer;


    $("#getweather").click(function () {
        $.ajax({
            url: '/getWeather',
            success(data) {
                layer.msg(data);
            }
        })
    });
});